package com.neu.util;

import java.util.ResourceBundle;

public class ReadUtil {

    //绑定名称为db的资源文件
    private static ResourceBundle rb = ResourceBundle.getBundle("db");
    //jdk提供的用于读取 资源文件的工具
    //资源文件必须放在src的目录中

    public static String getDriver(){

        String str  = rb.getString("driver");
        return str;
    }

    public static String getUrl(){
        String str = rb.getString("url");
        return str;

    }
    public static String getUser(){
        String str = rb.getString("user");
        return str;

    }
    public static String getPassword(){
        String str = rb.getString("password");
        return str;

    }

    public static void main(String[] args) {
        System.out.println(getUrl());
    }
}
